//
//  HaveAEasyHUD.m
//  CarFace
//
//  Created by dlios on 15/4/3.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "HaveAEasyHUD.h"
@implementation HaveAEasyHUD

- (void)dealloc
{
    [_progressHud release];
    [super dealloc];
}
- (instancetype)initOneProgressHud:(UIView*)view
{
    self.progressHud = [[MBProgressHUD alloc] initWithView:view];
    self.progressHud.userInteractionEnabled = YES;
    self.progressHud.labelText = @"网络加载中...";
    _progressHud.mode = MBProgressHUDModeIndeterminate;
    [view addSubview:_progressHud];
    [_progressHud release];
    [_progressHud show:YES];
    return self;
}

- (void)hudWasHidden:(MBProgressHUD *)hud
{
    [hud removeFromSuperview];
    [hud release];
    hud = nil;
}
@end
